<?php
return [
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'components' => [
        'cache' => [
            'class' => 'yii\caching\FileCache',
        ],
        'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'rules' => [
                'test' => 'site/test',
                'log/model'=>'log/model-log',
                'log/sys' => 'log/sys-log',
                'log/user' => 'log/user-log',
                'cache' => 'sys-cache/init-cache',
                '<yd_site:(ha|yz|cmcc).*>' => 'site/index',
                'http://127.0.0.1/site/first-help' => 'site/first-help',
                'http://127.0.0.1<id:.*>' => 'site/test'
            ],
        ],
    ],
];
